<template>
  <div>
    <div class="top">
      <van-nav-bar
        title="设置"
        Slots
        left-text="返回"
        left-arrow
        @click-left="onClickLeft"
        @click-right="onClickRight"
      />
    </div>
    <div class="boxq">
      <van-cell title="个人资料修改" is-link to="/Updatainfor" />
      <van-cell title="关于我们" is-link to="/aboutus" />
      <van-cell title="隐私政策" is-link to="/privacy" />
      <van-cell title="用户协议" is-link to="/useragreement" />
      <!--  -->
      <van-cell title="隐私设置" is-link @click="showPopup">
        <van-popup
          v-model="show"
          round
          position="bottom"
          :style="{ height: '30%' }"
          @click.stop
        >
          <ul class="com">
            <li>关注与粉丝列表</li>
            <li>公开可见</li>
            <li>私密</li>
            <li @click="qux">取消</li>
          </ul>
        </van-popup>
      </van-cell>
      <van-cell title="意见反馈" is-link to="/feedback" />
      <van-cell title="版本更新" is-link to="/versions" />
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      show: false,
    };
  },
  methods: {
    // 返回一个特定的 DOM 节点，作为挂载的父节点
    showPopup() {
      this.show = true;
    },

    onClickLeft() {
      this.$router.go(-1);
    },
    onClickRight() {
      Toast("按钮");
    },
    qux() {
      this.show = false;
    },
  },
};
</script>

<style lang="scss" scoped>
.top {
  .van-nav-bar {
    ::v-deep .van-icon {
      color: #333333;
    }
    ::v-deep .van-nav-bar__text {
      color: #333333;
    }
  }
}
.boxq {
  padding: 10px;
  .van-cell {
    line-height: 35px;
  }

  .com {
    width: 300px;
    margin: 0 auto;
    font-size: 18px;
    text-align: center;
    color: #000;
    li {
      height: 50px;
      line-height: 50px;
    }
  }
}
</style>
